package com.ftg.learn.chapter8.car;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 车
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/7/27 下午2:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Car implements  Driver{

    private String color;

    private String brand;

    private String series;


    public static void main(String[] args) {
        Car c1 = new Car();
        c1.setColor("红色");
        c1.setBrand("福特");
        c1.setSeries("野马");

        Car c2 = new Car("蓝色", "丰田", "福瑞斯");
        Car c3 = new Car("黄公", "法拉利", "911");
    }

    @Override
    public void run() {
        System.out.println("kogn qi kong qi。。。。。");
    }
}
